﻿using System;
using System.ComponentModel.DataAnnotations;
using internal_website.Meta;
using internal_website.Models.Resources;

namespace internal_website.Models
{
    public class Recording : IRecording
    {
        #region Constructor

        public Recording()
        {
        }

        #endregion

        [Key]
        public int Id { get; set; }
        public bool Active { get; set; }
        
        public byte[] AudioData { get; set; }
        /*        #region Localized display and model validation attributes
        [Display(Name = "Recording_Format_Display_Name", Prompt = "Recording_Format_Display_Prompt", ResourceType = typeof(ValidationStrings))]
        [Required(ErrorMessageResourceName = "Recording_Format_Required", ErrorMessageResourceType = typeof(ValidationStrings))]
        [LocalizedRegex("Recording_Format_LocalizedRegex_Pattern", "Recording_Format_LocalizedRegex_ErrorMessage", errorMessageResourceType: typeof(ValidationStrings))]
        #endregion
        */
        public string Format { get; set; }
        /*        #region Localized display and model validation attributes
        [Display(Name = "Recording_Comments_Display_Name", Prompt = "Recording_Comments_Display_Prompt", ResourceType = typeof(ValidationStrings))]
        [Required(ErrorMessageResourceName = "Recording_Comments_Required", ErrorMessageResourceType = typeof(ValidationStrings))]
        [LocalizedRegex("_Comments_LocalizedRegex_Pattern", "Recording_Comments_LocalizedRegex_ErrorMessage", errorMessageResourceType: typeof(ValidationStrings))]
        #endregion
        */
        public string Comments { get; set; }
        /*        #region Localized display and model validation attributes
        [Display(Name = "Recording_RecordingDate_Display_Name", Prompt = "Recording_RecordingDate_Display_Prompt", ResourceType = typeof(ValidationStrings))]
        [Required(ErrorMessageResourceName = "Recording_RecordingDate_Required", ErrorMessageResourceType = typeof(ValidationStrings))]
        [LocalizedRegex("_Date_LocalizedRegex_Pattern", "Recording_RecordingDate_LocalizedRegex_ErrorMessage", errorMessageResourceType: typeof(ValidationStrings))]
        #endregion
        */
        public DateTime RecordingDate { get; set; }

        #region Navigation properties

        [Required]
        public virtual EventComposition EventComposition { get; set; }

        #endregion
    }
}
